import instance from "../utils/request";

export function changeorderstate(obj) {
  return instance({
    url: "/admin/order/updateStatus",
    method: "get",
    params: obj,
  });
}

export function getorderlist() {
  return instance({
    url: "/admin/order/list",
    method: "get",
  });
}

export function getorderitemlist(s) {
  return instance({
    url: `/admin/order/statusList/?status=${s}`,
    method: "get",
  });
}
